<?php

class NewsletterSubscriptionList extends DBList {
	protected $dbTable = "tblModNewsletterSubscription";
	protected $rowClassType = "NewsletterSubscriptionItem";

    public function getSqlSelectQuery() {

        $sql = parent::getSqlSelectQuery();
        $sql["ORDER"] = "`createDate` DESC";

        return $sql;

    }

}

class NewsletterSubscriptionItem extends DBListItem {
	
	protected function loadCustomData() {
		
		if($this->getIsNew()) {
			$this->regID = md5(rand());
			
		}
		
	}
}
?>